package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.RBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RBookMapper {

    List<RBook> list();

    List<RBook> listByCondition(BaseRequest baseRequest);

    void save(RBook obj);

    RBook getById(Integer id);

    void updateById(RBook rBook);

    void deleteById(Integer id);

    void updateStatus(String status,Integer id);
}
